/*
 * MaterialManager.h
 *
 *  Created on: 08.07.2011
 *      Author: alki
 */

#ifndef MATERIALMANAGER_H_
#define MATERIALMANAGER_H_

#include "../objekte/Material.h"
#include "../Exception.h"
#include <stdlib.h>
#include <vector>

using namespace std;

class MaterialManager {
public:
	MaterialManager();
	virtual ~MaterialManager();

	unsigned int addMaterial(Material m);

	const Material* getMaterial(unsigned int index) const;

private:
	int search(Material m);

	vector<Material> m_materialien;
};

#endif /* MATERIALMANAGER_H_ */
